package com.raoleqing.ruse;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;

public class OpenSQLiteERP extends SQLiteOpenHelper {
	public static final String DB_NAME = "erpraoleqing10.db";
	public static final int VERSION = 3;

	public OpenSQLiteERP(Context context, String name, CursorFactory factory,
			int version) {
		super(context, name, factory, version);
	}

	public OpenSQLiteERP(Context context) {
		this(context, DB_NAME, null, VERSION);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		System.out.println("onCreate().......................");
		db.execSQL("create table erpraole(erpid integer PRIMARY KEY AUTOINCREMENT,mname text,mjob text,dept text,subsector text,telephoneNumber text);");
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		
	}

}
